/*
 * Author : Yuval Kovler 2011
 * 
 */

package implementation.DB;

import org.hibernate.Session;


public class DBSessionManager {
 private Session session = null;
 
 public DBSessionManager(Session session) {
  if(session == null)
    throw new 
      RuntimeException("Invalid session object.");
  this.session = session;
 }
 
 
 public void save(Object obj){
	  session.save(obj);
	 }
	 
 public void update(Object obj){
	  session.update(obj);
	 }
	 
 public void delete(Object obj) {
	  session.delete(obj);
	 }
 
}
